package cn.eeepay.framework.service;

import cn.eeepay.framework.db.pagination.Page;
import cn.eeepay.framework.org.*;

import javax.servlet.http.HttpServletResponse;
import java.math.BigInteger;
import java.util.List;

public interface PolicyTargetService {

    List<PolicyTarget> list(PolicyTarget target, Page<PolicyTarget> page);

    List<PolicyMTime> selectMTimes();

    void saveMTimes(List<PolicyMTime> mTimes);

    void savePolicyTarget(PolicyTarget target);

    void export(HttpServletResponse response, PolicyTarget target);

    List<PolicyTargetDetail> selectPolicyTargetDetail(BigInteger id);

    List<PolicyQuotaInfo> selectHisQuotas(Page<PolicyQuotaInfo> page);

    List<PolicyQuotaInfo> selectNewQuotas();

    void updateTargetConfig(String param);

    String selectTargetConfig();

    PolicyTargetRange selectTargetRange();

    void updateTargetRange(PolicyTargetRange config);

    void saveQuotas(List<PolicyQuotaInfo> quotas);

    PolicyTarget selectPolicyTarget(BigInteger id);

    int deletePolicyTarget(BigInteger id);

}
